package VN.EDU.IMIC.DEVELOPER.TRINHCAOSANG.Exam01.Bai1.Bai1;

/**
 * Created by Sang on 07/03/2016.
 */
public class TrapezoidController {
    private TrapezoidEntity trapezoidEntity = new TrapezoidEntity();


    public TrapezoidController(TrapezoidEntity trapezoidEntity) {
        this.trapezoidEntity = new TrapezoidEntity();
    }

    public double TrapeArea(TrapezoidEntity trapezoidEntity) {
        return trapezoidEntity.getArea(trapezoidEntity);
    }

    public double TrapePerimeter(TrapezoidEntity trapezoidEntity) {
        return trapezoidEntity.getPerimeter(trapezoidEntity);
    }
}
